package com.timothy.asset.util;

/**
 * Created by IntelliJ IDEA.
 * User: qtang
 * Date: 2011-11-29
 * Time: 10:14:44
 * To change this template use File | Settings | File Templates.
 */
public class NumberUtil {
    public static String formatData2Deci(double c) {
        java.text.DecimalFormat myformat = new java.text.DecimalFormat("#0.00");
        return myformat.format(c);
    }

    public static String formatData3Deci(double c) {
        java.text.DecimalFormat myformat = new java.text.DecimalFormat("#0.00");
        return myformat.format(c);
    }

    public static String formatData4Deci(double c) {
        java.text.DecimalFormat myformat = new java.text.DecimalFormat("#0.0000");
        return myformat.format(c);
    }
}
